#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ZLTextHighlight : NSObject

/// 高亮范围
@property (nonatomic, assign) NSRange range;

/// 点击回调
@property (nonatomic, copy, nullable) void (^tapAction)(void);

/// 高亮状态下的文本颜色
@property (nonatomic, strong) UIColor *highlightColor;

/// 正常状态下的文本颜色
@property (nonatomic, strong) UIColor *normalColor;

/// 是否显示下划线
@property (nonatomic, assign) BOOL showUnderline;

/// 便利构造器
+ (instancetype)highlightWithRange:(NSRange)range;

/// 初始化方法
- (instancetype)initWithRange:(NSRange)range;

@end

NS_ASSUME_NONNULL_END 
